package oms.Order.api;

import com.kunchi.isb.base.api.ISBApi;
import com.kunchi.isb.base.api.ISBClientFactory;
import com.kunchi.isb.base.result.ISBResult;
import oms.Order.po.Order;

import java.util.List;

public class OmsAPI {
    public static void main(String[] args) {
//        查询
        ISBClientFactory.init(  "127.0.0.1",  "9097");
        ISBApi<Order, List<Order>> isbApi= ISBClientFactory.getInstance().buildCilent("oms","OrderFindStatus");
        System.out.println(isbApi);
        Order order=new Order();
        order.setOrderPrice("18");
        order.setOrderStatus("complete");
        ISBResult<List<Order>> test = isbApi.callPavedService(order);
        System.out.println(test);

    }
}
